package de.tum.in.eist.poll.shared;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Representation of a feedback submitted by a student.
 */
public class Feedback implements IsSerializable {

	/**
	 * The lecture the feedback addresses.
	 */
	private Lecture lecture;

	/**
	 * The student who submitted the feedback.
	 */
	private Student student;
	
	private int bewertung;
	
	private String negComm;
	
	private String posComm;

	/**
	 * Default zero-argument constructor.
	 */
	public Feedback() {
	}

	/**
	 * @param lecture
	 *            {@link #lecture}
	 * @param student
	 *            {@link #student}
	 */
	public Feedback(Lecture lecture, Student student) {
		this.lecture = lecture;
		this.student = student;
	}
	
	

	public Feedback(Lecture lecture, Student student, int bewertung,
			String negComm, String posComm) {
		super();
		this.lecture = lecture;
		this.student = student;
		this.bewertung = bewertung;
		this.negComm = negComm;
		this.posComm = posComm;
	}

	/**
	 * @return the {@link #lecture}.
	 */
	public Lecture getLecture() {
		return lecture;
	}

	/**
	 * @return the {@link #student}.
	 */
	public Student getStudent() {
		return student;
	}
	
	public int getBewertung() {
		return bewertung;
	}

	public void setBewertung(int bewertung) {
		this.bewertung = bewertung;
	}

	public String getNegComm() {
		return negComm;
	}

	public void setNegComm(String negComm) {
		this.negComm = negComm;
	}

	public String getPosComm() {
		return posComm;
	}

	public void setPosComm(String posComm) {
		this.posComm = posComm;
	}
}
